package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Setmeal;

import java.util.List;

public interface SetmealService {

    /**
     * @Author: JASON
     * @Date: 9:11 2021/1/6
     * @Parms [queryPageBean]
     * @ReturnType: com.itheima.health.entity.PageResult
     * @Description: 套餐管理分页查询
    */
    PageResult findPage(QueryPageBean queryPageBean);

    /**
     * @Author: JASON
     * @Date: 9:39 2021/1/6
     * @Parms [setmeal, checkgroupIds]
     * @ReturnType: void
     * @Description: 套餐管理新增
    */
    void add(Setmeal setmeal, Integer[] checkgroupIds);

    /**
     * @Author: JASON
     * @Date: 10:08 2021/1/6
     * @Parms [id]
     * @ReturnType: com.itheima.health.pojo.Setmeal
     * @Description: 根据id查询套餐
    */
    Setmeal findById(Integer id);

    /**
     * @Author: JASON
     * @Date: 10:19 2021/1/6
     * @Parms []
     * @ReturnType: java.util.List<java.lang.Integer>
     * @Description: 根据SetmealId查询CheckGroupIds
    */
    List<Integer> findCheckGroupIdsBySetmealId(Integer id);

    /**
     * @Author: JASON
     * @Date: 10:00 2021/1/9
     * @Parms [fileName]
     * @ReturnType: int
     * @Description: 根据文件名称查询
    */
    int count(String fileName);

    /**
     * @Author: JASON
     * @Date: 17:29 2021/1/9
     * @Parms []
     * @ReturnType: java.util.List<com.itheima.health.pojo.Setmeal>
     * @Description: 套餐查询所有
    */
    List<Setmeal> findAll();

}
